get

abstract fun <C : P?> get(callbackClass: Class<C>): Optional<C>

Returns an Optional that contains the callback of the given type or an empty Optional if there is no registered callback with the given type.

Return

an Optional that contains the callback of the given type

Parameters

callbackClass

the callback class

<C>

the callback type